<!DOCTYPE html> 
<html class="ui-mobile-rendering"> 
	<head> 
	<title>Hellogue</title> 
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
<meta name="viewport" content="width=device-width, user-scalable=no" />
   <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="<?echo base_url('themes/jquery.mobile.structure-1.0.1.min.css');?>" />
        <link rel="stylesheet" href="<?echo base_url('themes/hellogue.min.css');?>" />
       
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
        <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
        
        
        
          <link rel="stylesheet" href="http://dev.jtsage.com/cdn/datebox/1.0.1/jquery.mobile.datebox-1.0.1.css" /> 
 
  
  <script src="http://dev.jtsage.com/cdn/datebox/1.0.1/jquery.mobile.datebox-1.0.1.js"></script>

  <?php if (false) :?>
  <script src="<?echo base_url('themes/jquery.easing.1.3.js');?>"></script>
    <script src="<?echo base_url('themes/jquery.mobile.scrollview.js');?>"></script>
  <script src="<?echo base_url('themes/scrollview.js');?>"></script>
        <script src="<?echo base_url('themes/jquery.mobile.iscroll.js');?>"></script>
        <script src="http://cubiq.org/dropbox/iscroll/iscroll.js?v3.7.1"></script>
	
	<?php endif;?>
	</head> 
<body> 
<div data-role = "page">

<?php if ( $id != "readApplicants" and $id != "confirmed_hello" and $id != "login" and $id != "register" and $id!="profiledialog"): ?>

<div data-role="header" data-position="fixed">
 <a data-rel="back" data-role="button" data-icon="back" data-iconpos="left">Back</a>
		<h1><?=$title?></h1>
<a href="<?=site_url('hello_controller/to_create_hello');?>" data-role="button" class="ui-btn-right" data-icon="createhello" data-iconpos="right">New</a>

<?php if ($title=="Me") :?>
<div data-role="navbar" data-iconpos="left" >
			<ul>
						<li><a data-theme="b"   href="<?echo site_url('feed_controller/index');?>" data-icon="world"  data-transition="slidedown"><b>Feed</b></a></li>
			<li><a data-theme="b"   href="<?echo site_url('feed_controller/my_hello');?>" data-icon="info"  data-transition="slidedown"><b>My Hello</b></a></li>
			<li><a data-theme="b"   href="<?php echo site_url('friend_controller/view_my_friends');?>" data-icon="friends" data-transition="slidedown" >Friends</a></li>
			
			<?php if ($id=="editProfile"):?>
			<li><a data-theme="b"  class="ui-btn-active ui-state-persist"  href="<?=site_url('user_controller/to_edit_profile');?>" data-icon="editprofile"  data-transition="slidedown"><b>Edit</b></a></li>	
			<?php else: ?>
			<li><a data-theme="b"  href="<?=site_url('user_controller/to_edit_profile');?>" data-icon="editprofile"  data-transition="slidedown"><b>Edit</b></a></li>	
			<?php endif; ?>
			</ul>
			
		</div>
		<?php else :?>

<div data-role="navbar" class="ui-navbar" data-iconpos="left">
		<ul>
		
		
		<?php if ($id=="feed"):?>
		<li><a href="<?php echo site_url('feed_controller');?>"  data-role="button" data-icon="world"  class="ui-btn-active ui-state-persist"><b>Feed</b></a></li>
		<?php else: ?>
		<li><a href="<?php echo site_url('feed_controller');?>"  data-transition="slidedown" data-role="button" data-icon="world"><b>Feed</b></a></li>
	    <?php endif; ?>
	    
	    
	    
		
		<?php if ($id=="notification"):?>
		<li><a href="<?php echo site_url('notification_controller/show_notification');?>" data-role="button" data-icon="notification"  data-inline="true" class="ui-btn-active ui-state-persist"><b>Notice</b></a></li>
		<?php else: ?>
		<li><a href="<?php echo site_url('notification_controller/show_notification');?>" data-role="button" data-icon="notification" data-transition="slidedown" data-inline="true"><b>Notice</b></a></li>
		<?php endif; ?>
		
		
		<?php if ($id=="message"):?>
		<li><a href="<?php echo site_url('messege_controller/show_my_messege');?>" data-role="button" data-icon="messages"  data-inline="true" class="ui-btn-active ui-state-persist"><b>Inbox</b></a></li>
		<?php else: ?>
		<li><a href="<?php echo site_url('messege_controller/show_my_messege');?>" data-role="button" data-icon="messages" data-transition="slidedown" data-inline="true"><b>Inbox</b></a></li>
		<?php endif; ?>
		
		
		<?php if ($id=="me"):?>
		<li><a href="<?php echo site_url('user_controller/show_user_profile?userID='.$this->session->userdata('userid'));?>" data-role="button" data-icon="me"  data-inline="true" class="ui-btn-active ui-state-persist"><b>Profile</b></a></li>
		<?php else: ?>
		<li><a href="<?php echo site_url('user_controller/show_user_profile?userID='.$this->session->userdata('userid'));?>" data-role="button" data-icon="me" data-transition="slidedown" data-inline="true"><b>Profile</b></a></li>
		<?php endif; ?>
		
		
		
		
		
		
		</ul>
	</div>
		<?endif;?>
	</div>
	
	<? elseif ( $id == "readApplicants" ): ?>
	
	<div data-role="header"  data-position="fixed">	
		<h4>Applicants</h4>
	</div>
	
	<? elseif ( $id == "confirmed_hello" ): ?>
	<div data-role="header"  data-position="fixed">	
		<h4>Hellogue</h4>
	</div>
	
	<? elseif ($id == "register"): ?>
	<div data-role="header"  data-position="fixed">	
		
		<a href ="<?= site_url('splash_controller');?>" data-role="button" class="ui-brn-left" data-icon="arrow-l">Back</a>
			
			<h1>Hellogue</h1>
	</div>
	<? elseif ($id == "profiledialog"): ?>
	<div data-role="header"  data-position="fixed">	
		
			
			<h1><?=$title?></h1>
	</div>
	
	
	
	
	
	
	<? else: ?>
	
	
	
	<? endif; ?>
	
	<!-- /header -->
	
	
	<!--
	<?php if (($id=="feed" or $id=="me")and !$this->session->userdata('isverified')): ?>
	<p><b>You haven't verified your account<b></p>
	
	<?php endif;?>
	-->